package shouji;

/**
 * @author zihao
 * @date 2025/3/17 23:14
 * @VERSION
 * @description
 **/
public class Computer {
    private String xinghao="redmi";
    private String cpu="intel";
    private int money=7999;
    //无参构造
    public Computer(){
    }
    //有参构造
    public Computer(String xinghao,String cpu,int money){
        this.cpu=cpu;
        this.xinghao=xinghao;
        this.money=money;
    }
    public String getXinghao(){
        return xinghao;
    }
    public void setXinghao(String xinghao){
        this.xinghao=xinghao;
    }

    public String getCpu(){
        return cpu;
    }
    public void setCpu(String cpu){
        this.cpu=cpu;
    }
    public int getMoney(){
        return money;
    }
    public void setMoney(int money){
        this.money=money;
    }
    public void playComputer(){
        System.out.println("的电脑的帕子是"+xinghao+"cpu是"+cpu+"价格是"+money);
    }

}
